package alfred.mdp.tsp;

import org.zeromq.ZFrame;

/**
 */
public class Titanic {
    public static final String TITANIC_REQUEST_SERVICE = "titanic.request";
    public static final String TITANIC_REPLY_SERVICE = "titanic.reply";
    public static final String TITANIC_CLOSE_SERVICE = "titanic.close";

    public static class ResponseCode {
        /**
         * 200 - OK. The TSP service executed the request successfully. For a titanic.reply service, this additionally means that the 'real' service executed successfully.
         */
        public static final ZFrame OK = new ZFrame("200");
        /**
         * 300 - PENDING. The client SHOULD retry the request at a later time.
         */
        public static final ZFrame PENDING = new ZFrame("300");
        /**
         * 400 - UNKNOWN. The client is using an invalid or unknown UUID and SHOULD NOT retry.
         */
        public static final ZFrame UNKNOWN = new ZFrame("400");
        /**
         * 500 - ERROR. The server cannot complete the request due to some internal error. The client SHOULD retry at some later time.
         */
        public static final ZFrame ERROR = new ZFrame("500");
    }
}
